package com.pattern.observer;

/**
 * @Description: 具体目标
 * @Author: whp
 * @Date: 2021-01-28 17:25
 */
public class ConcreateSubject extends Subject{
    @Override
    public void notifyObserver() {
        System.out.println("目标发生变化");
        System.out.println("_______");
        for (Observer observer:observers){
            //做出反应
            observer.response();
        }
    }
}
